﻿@using QDT.Core
@using QDT.Web.Admin.Models
@model IList<PaymentListModel>
<div class="main_title">支付接口列表</div>
<div class="blank5"></div>
<div class="grid_box">
    <div class="grid_top"></div>
    <table cellspacing="0" cellpadding="0" class="grid" id="dataTable">
        <tbody>
            <tr class="row">
                <th>支付接口名称</th>
                <th>状态</th>
                <th>是否安装</th>
                <th> 在线支付</th>
                <th> 总收款</th>
                <th>排序</th>
                <th>操作</th>
            </tr>
            @foreach (PaymentListModel m in Model) {
                <tr class="row">
                    <td>@m.Name
                    </td>
                    <td>@(m.IsEffect ? "有效" : "无效") </td>
                    <td>@(m.IsInstall ? "是" : "否")</td>
                    <td>@(m.OnlinePay ? "是" : "否")</td>
                    <td>@m.TotalAmount.ToMoney()
                    </td>
                    <td>@m.Sort</td>
                    @if (m.IsInstall) {
                        <td>
                            @Html.ActionLink("编辑","Edit",new{id=m.ID})
                            <a href="javascript:;" onclick="foreverdel(@m.ID)">卸载</a>
                        </td>
                    } else {
                        <td>
                            @Html.ActionLink("安装", "Install",new {key = m.ClassName})
                        </td>
                    }
                
                </tr>
            }
        </tbody>
    </table>
    <div class="grid_foot"></div>
</div>